package kin.bean.system;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
@Entity
@Table(name="t_kinsearchform")
public class KinSearchForm {
	@Column
	private String type;
	@Column
	private String fieldName;
	
	@ManyToOne(targetEntity=kin.bean.system.Form.class,cascade={CascadeType.PERSIST,CascadeType.MERGE},fetch=FetchType.LAZY,optional=false)
	private Form form;
	@Id
	@GeneratedValue
	private int kinSearchForm_id;
	@Column
	 private  int width;
	@Column
	 private int height;
	@Column
	 private boolean serializable;
	@Column
	 /**
	 * 该字段是否被隐藏
	 */
	 private boolean hidden;
	@Column
	 private String xtype;
	@Column
	 private int sort;
	@Column
	 private boolean allowBlank;
	@Column
	 private String label;
	@Column
	 private String labelAlign;
	@Column
	 private String labelCls;
	@Column
	 private int labelWidth;
	@Column
	 private String format;
	@Column
	 private int max;
	@Column
	 private int min;
	@Column
	 private int maxLength;
	@Column
	 private int minLength;
	@Column
	 private String cls;
	@Column
	 private String style;
    
	@Column
	 private boolean editor;
	@Column
	 private String vtype;
	@Column
	 private String regexText;
	@Column
	 private String regex;
	 

	
	@Column
private String realType;
	
	@Column
private String realSimpleType;
	 
	 
	
	
	public int getKinSearchForm_id() {
		return kinSearchForm_id;
	}
	public void setKinSearchForm_id(int kinSearchForm_id) {
		this.kinSearchForm_id = kinSearchForm_id;
	}
	public int getWidth() {
		return width;
	}
	public void setWidth(int width) {
		this.width = width;
	}
	public int getHeight() {
		return height;
	}
	public void setHeight(int height) {
		this.height = height;
	}
	
	public boolean isHidden() {
		return hidden;
	}
	public void setHidden(boolean hidden) {
		this.hidden = hidden;
	}
	public String getXtype() {
		return xtype;
	}
	public void setXtype(String xtype) {
		this.xtype = xtype;
	}
	public int getSort() {
		return sort;
	}
	public void setSort(int sort) {
		this.sort = sort;
	}
	public boolean isAllowBlank() {
		return allowBlank;
	}
	public void setAllowBlank(boolean allowBlank) {
		this.allowBlank = allowBlank;
	}
	public String getLabel() {
		return label;
	}
	public void setLabel(String label) {
		this.label = label;
	}
	public String getLabelAlign() {
		return labelAlign;
	}
	public void setLabelAlign(String labelAlign) {
		this.labelAlign = labelAlign;
	}
	public String getLabelCls() {
		return labelCls;
	}
	public void setLabelCls(String labelCls) {
		this.labelCls = labelCls;
	}
	public int getLabelWidth() {
		return labelWidth;
	}
	public void setLabelWidth(int labelWidth) {
		this.labelWidth = labelWidth;
	}
	public String getFormat() {
		return format;
	}
	public void setFormat(String format) {
		this.format = format;
	}
	public int getMax() {
		return max;
	}
	public void setMax(int max) {
		this.max = max;
	}
	public int getMin() {
		return min;
	}
	public void setMin(int min) {
		this.min = min;
	}
	public int getMaxLength() {
		return maxLength;
	}
	public void setMaxLength(int maxLength) {
		this.maxLength = maxLength;
	}
	public int getMinLength() {
		return minLength;
	}
	public void setMinLength(int minLength) {
		this.minLength = minLength;
	}
	public String getCls() {
		return cls;
	}
	public void setCls(String cls) {
		this.cls = cls;
	}
	public String getStyle() {
		return style;
	}
	public void setStyle(String style) {
		this.style = style;
	}
	public boolean isEditor() {
		return editor;
	}
	public void setEditor(boolean editor) {
		this.editor = editor;
	}
	public String getVtype() {
		return vtype;
	}
	public void setVtype(String vtype) {
		this.vtype = vtype;
	}
	public String getRegexText() {
		return regexText;
	}
	public void setRegexText(String regexText) {
		this.regexText = regexText;
	}
	public String getRegex() {
		return regex;
	}
	public void setRegex(String regex) {
		this.regex = regex;
	}
	
	
	public String getRealType() {
		return realType;
	}
	public void setRealType(String realType) {
		this.realType = realType;
	}
	public String getRealSimpleType() {
		return realSimpleType;
	}
	public void setRealSimpleType(String realSimpleType) {
		this.realSimpleType = realSimpleType;
	}
	public Form getForm() {
		return form;
	}
	public void setForm(Form form) {
		this.form = form;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getFieldName() {
		return fieldName;
	}
	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}
	public boolean isSerializable() {
		return serializable;
	}
	public void setSerializable(boolean serializable) {
		this.serializable = serializable;
	}
	 
    
}
